|
Command: |
To export members Magnetic Stripe key set from the ESP for transport to the Europay KMC. |
|
Notes: |
Use of this command requires the optional ESP licence. Error code 67 will be returned if the command is not licensed. The output from this function is a double length key used to encrypt keys sent from the Europay KMC (BKEM) and a double length key used to MAC keys sent from the Europay KMC (BKAM) Some of the keys in the key set may be set to all zeroes to indicate they are not used. The ESP sequence number is created from the date/time in BCD = YYYYMMDDhhmmss00. |
|
Field |
Length & Type |
Details | |
|
COMMAND MESSAGE |
|||
|
Message Header |
m A |
Will be returned to the Host unchanged | |
|
Command Code |
2 A |
Value R6 | |
|
Delimiter |
1 A |
Optional. If present the following field must be present. Value ;. | |
|
ESP Version |
1 A |
0 = September 2002 Specification 1 = April 2003 Specification (Version = 01 02)
Only present if above Delimiter is present. | |
|
Member ID |
10 N |
Member ID number provided by the KMC PSS16 form sent by Europay to the member | |
|
Key Set Reference |
4 N |
Reference of the Magnetic Stripe Card Keys provided in this key set, as defined by the member | |
|
Floor Expiry Date for key set |
4 N |
Expiry Date in format MMYY | |
|
PAN Range for Key Set |
38 N |
Concatenation of 19 digits formed of PAN‑low left padded by 0s and 19 digits formed of PAN‑high left padded by 0s | |
|
PVKI |
1 N |
Index of PVV, 0 to 9 | |
|
PVV Key |
1A + 32 H |
Double length PVV key, encrypted under LMK pair 14-15 using Key Encryption Scheme U | |
|
Extra PVV Key Information |
12 N |
Extra data linked to the key | |
|
CVC1 |
1A + 32 H |
Double length CVC1 key, encrypted under LMK 14-15 variant 4 using Key Encryption Scheme U | |
|
Extra CVC1 Key Information |
11 N |
Extra data linked to the key
| |
|
CVC2 |
1A + 32 H |
Double length CVC2 key, encrypted under LMK 14-15 variant 4 using Key Encryption Scheme U | |
|
Extra CVC2 Key Information |
7 N |
Extra data linked to the key
| |
|
Transport Key ID |
4 N |
Key ID of the BKAM BKEM pair used | |
|
MAC algorithm |
1 N |
MAC algorithm parameters to be used
with BKAM, | |
|
BKAM |
1A + 32 H |
BKAM encrypted under LMK pair 22-23 variant 6 | |
|
BKEM |
1A + 32 H |
BKEM encrypted under LMK pair 22-23 variant 5 | |
|
End Message Delimiter |
1 C
|
Optional. Must be present if a message trailer is present. Value X'19 | |
|
Message Trailer |
n A |
Optional. Maximum length 32 characters | |
|
RESPONSE MESSAGE |
|||
|
Message Header |
m A |
Will be returned to the Host unchanged | |
|
Response Code |
2 A |
Value R7 | |
|
Error Code |
2 N |
00 No error 8 BKAM parity error 9 BKEM parity error 10 PVV key parity error 11 CVC Key1 parity error 50 CVC Key2 parity error 15 Error in input data 51 Invalid MAC algorithm number 80 - Data length error | |
|
ESP Sequence Number |
16 H |
Sequence Number from the ESP
| |
|
Encrypted PVV Key |
32 H |
BKEM Encrypted PVV Key | |
|
PVV Key CV |
3 B |
Check Value on PVV | |
|
Encrypted CVC1 Key |
32 H |
BKEM Encrypted CVC1 Key | |
|
CVC1 Key CV |
3 B |
Check Value on CVC1 | |
|
Encrypted CVC2 Key |
32 H |
BKEM Encrypted CVC2 Key | |
|
CVC2 Key CV |
3 B |
Check Value on CVC2 | |
|
MAC |
16 H |
MAC calculated over key set data using BKAM | |
|
End Message Delimiter |
1 C
|
Will only be present if present in the command message. Value X'19 | |
|
Message Trailer |
n A
|
Will only be present if in the command message. Maximum length 32 characters | |
|
Message Header |
m A |
Will be returned to the Host unchanged | |